package com.tledu.operator;

/**
 * 字符串连接运算
 */
public class Operator05 {
    public static void main(String[] args) {
        String title = "今天值日的人是：";
        String name = "张三";
        System.out.println(title + name);
        double pi = 3.1415926;
        int r = 15;
        // 字符串和别的类型进行拼接的时候，会自动转成字符串
        System.out.println("PI=" + pi);
        System.out.println("运算结果是"+r+pi);
        // 运算的优先级
        System.out.println("运算结果是"+(r+pi));

    }
}
